﻿@model Com.ProjectA.FAMvc.Areas.admin.Models.PersonModel

@using (Html.BeginForm()) {

    <fieldset>
        <legend>DAOPerson</legend>
        <div class="editor-label createForm">
            @Html.LabelFor(model => model.person_id)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.person_id)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.person_code)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all freeze-edit">
            @Html.EditorFor(model => model.person_code, new { @class = "freeze-edit" })
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.first_name)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.first_name)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.middle_name)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.middle_name)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.last_name)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.last_name)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.birthday)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.birthday)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.death_day)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.death_day)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.number_children)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.number_children)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.sex)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.CheckBoxFor(model => model.chkSex)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.biography_id)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.biography_id)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.born_id)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.born_id)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.create_uid)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.create_uid)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.update_uid)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.EditorFor(model => model.update_uid)
        </div>

        <div class="editor-label createForm">
            @Html.LabelFor(model => model.person_status)
        </div>
        <div class="editor-field createForm text ui-widget-content ui-corner-all">
            @Html.CheckBoxFor(model => model.chkStatus)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
